package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 dormitory_absence
 * 
 * @author ruoyi
 * @date 2023-01-11
 */
public class DormitoryAbsence extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 查寝ID */
    private Long absentId;

    /** 查寝人 */
    @Excel(name = "查寝人")
    private String bedkeeper;

    /** 缺勤人 */
    @Excel(name = "缺勤人")
    private String absentStu;

    /** 查寝时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "查寝时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date absentTime;

    /** 缺勤原因 */
    @Excel(name = "缺勤原因")
    private String absentReason;

    /** 何时回寝 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "何时回寝", width = 30, dateFormat = "yyyy-MM-dd")
    private Date goBackTime;

    public void setAbsentId(Long absentId) 
    {
        this.absentId = absentId;
    }

    public Long getAbsentId() 
    {
        return absentId;
    }
    public void setBedkeeper(String bedkeeper) 
    {
        this.bedkeeper = bedkeeper;
    }

    public String getBedkeeper() 
    {
        return bedkeeper;
    }
    public void setAbsentStu(String absentStu) 
    {
        this.absentStu = absentStu;
    }

    public String getAbsentStu() 
    {
        return absentStu;
    }
    public void setAbsentTime(Date absentTime) 
    {
        this.absentTime = absentTime;
    }

    public Date getAbsentTime() 
    {
        return absentTime;
    }
    public void setAbsentReason(String absentReason) 
    {
        this.absentReason = absentReason;
    }

    public String getAbsentReason() 
    {
        return absentReason;
    }
    public void setGoBackTime(Date goBackTime) 
    {
        this.goBackTime = goBackTime;
    }

    public Date getGoBackTime() 
    {
        return goBackTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("absentId", getAbsentId())
            .append("bedkeeper", getBedkeeper())
            .append("absentStu", getAbsentStu())
            .append("absentTime", getAbsentTime())
            .append("absentReason", getAbsentReason())
            .append("goBackTime", getGoBackTime())
            .toString();
    }
}
